/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commands;

import IA.InformationAggregator;

/**
 *
 * @author Pop
 */
public class CmdRemoveItem extends Command {
    String removeStr;
    public CmdRemoveItem(InformationAggregator ia, String removeStr){
        super(ia);
        this.removeStr = removeStr;
    }
    public Object execute(){
        Integer index = Integer.parseInt(removeStr);
        ia.getMenu().removeItem(index);
        return null;
    }
}
